﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using L = Science.Mathematics.LinearAlgebra;

namespace Strang3Ed.Chapter01.Section2
{
    public class Example01
    {
        public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
        public void Compute()
        {
            L.Vector v = new L.Vector(2);
            v[0] = 4.0;
            v[1] = 2.0;
        
            L.Vector w = new L.Vector(2);
            w[0] = -1.0;
            w[1] = 2.0;
      
            result += (v*w).ToString() + "\r\n";
            result += (w*v).ToString() + "\r\n";
        }
    }
}
/*
0
0
*/
